﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessClass.StateMachine.Core
{
    public static class StateExtension
    {
        public static ISate<N> ContinueWithState<T, N>(this ISate<T> s, ISate<N> next)
        {
            return StateFactory.CreateContinueState(s, next);
        }
        public static ISate<N> ContinueWithState<T, N>(this ISate<T> s, Action<T> firstFinishAction, ISate<N> next)
        {

            return StateFactory.CreateContinueState(s, firstFinishAction, next);
        }
    }
}
